<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>

<style>

table label.error {
    margin-left: 5px;
    width: auto;
    display: inline;
    color: red;
}


</style>
</head>
<body>
     <form action="#" name="Form" id="Form" method="post">
       <input type="hidden" name="gbid" id="gbid"  value="${data.gbid}"/>
		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%" >
			<tr>
				<td class="table-header" colspan="4">学生会干部信息</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">姓名:</td>
				<td class="table-contentTD" style="width: 35%">${data.xm}</td>
		
		      <td class="table-titleTD" style="width: 15%">学号:</td>
				<td class="table-contentTD">${data.xh}</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">性别:</td>
			    <td class="table-contentTD">${data.xb}</td>
		
			    <td class="table-titleTD" style="width: 15%">班级名称:</td>
				<td class="table-contentTD">${data.bjmc}</td>
			</tr>
		  <tr>
				<td class="table-titleTD" style="width: 15%">专业:</td>
			    <td class="table-contentTD">${data.zymc}</td>
				
			    <td class="table-titleTD" style="width: 15%">年级:</td>
				<td class="table-contentTD">${data.njmc}</td>
			</tr>
			
			<tr>
				<td class="table-titleTD" style="width: 15%">职务:</td>
				<td class="table-contentTD"> 
				    <c:if test="${data.drzw==1}">主席 </c:if>
					<c:if test="${data.drzw==2}">副主席 </c:if>
					<c:if test="${data.drzw==3}">部长</c:if>
					<c:if test="${data.drzw==4}">干事</c:if>
				</td>
				
				<td class="table-titleTD" style="width: 15%">担任开始日期:</td>
				<td class="table-contentTD">${data.ksrq1}</td>
			</tr>
		   
		   
			 <tr>
				<td class="table-titleTD" style="width: 15%">担任年限:</td>
			    <td class="table-contentTD">${data.rznx}</td>
				
				<td class="table-titleTD" style="width: 15%">状态:</td>
				<td class="table-contentTD"> 
				    <c:if test="${data.states==0}">未提交 </c:if>
					<c:if test="${data.states==1}">审核中 </c:if> 
					<c:if test="${data.states==2}">审核通过 </c:if>
					<c:if test="${data.states==3}">审核退回</c:if>
			    </td>
			</tr>
			 <tr>
				<td class="table-titleTD" style="width: 15%">递交对象:</td>
				<td class="table-contentTD">
					   <input type="radio" value="2" name="auditortype" disabled="disabled" <c:if test="${data.auditortype==2}">checked="checked"</c:if> />学生
					   <input type="radio" value="1" name="auditortype" disabled="disabled" <c:if test="${data.auditortype==1}">checked="checked"</c:if> />老师
				</td>
				
				<td class="table-titleTD" style="width: 15%">递交给:</td>
				<td class="table-contentTD">${data.auditorname}</td>
			 </tr>
			
		       <tr>
						 <td class="table-titleTD" style="width: 15%">附件:</td>
						     <td  class="table-contentTD" colspan="3">
						      <table>
						            <tr>
						               <td colspan="2">
						                  <div id="uploadadd"></div>
						                </td>
						            </tr>
						             <c:forEach items="${dataList}" var="datalist" varStatus="index">
							            <tr>
						                     <td>
									            [文件] ${datalist.filename}
									         </td>
									          <td>
									              <a href="${basePath}/DownLoadFileServlet?filename=${datalist.filename}&filepath=${datalist.filepath}">下载</a> 
					                          </td>
						                </tr>
							   	    </c:forEach>
							   </table>
						 </td>
			  </tr>
			
			<tr>
				<td class="table-titleTD">备注:</td>
				<td class="table-contentTD" colspan="3">${data.remark}</td>
			</tr>
		     <tr>
				<td class="table-titleTD">审核意见:</td>
				<td class="table-contentTD" colspan="3"><textarea style="width: 90%;height: 80px;" name="auditSuggestion"  placeholder="审核意见" id="auditSuggestion" maxlength="2000" >${data.auditSuggestion}</textarea></td>
			 </tr>
		</table>
		</form>
	
			
		<table cellpadding="1" cellspacing="1" border="0" align="left">
			<tr>
			    <td><input type="button" id="btnThrough" value="审 核 通 过"  class="inputButton" style="text-align: center;"/></td>
				<td><input type="button" id="btnBack" value="审 核 退 回" class="inputButton" style="text-align: center;"/></td>
				<td><input type="button" id="returnBut"  class="inputButton" value="返回"  style="text-align: center;"/></td>
			</tr>
		</table>
		<script>
			$(document).ready(function() {
				  $("#btnThrough").click(function() {
					  document.Form.action ="${basePath}/twglStudentCadreUnion/audit?states=2";
					  document.Form.submit();
		 		  });
				
				  $("#btnBack").click(function() {
					  document.Form.action ="${basePath}/twglStudentCadreUnion/audit?states=3";
					  document.Form.submit();
		 		  });
				  
				  $("#returnBut").click(function() {
		 		 	  window.location.href='${basePath}/twglStudentCadreUnion/index_audit';
		 		  });
			});
		</script>
</body>
</html>
